package com.TanNgee;

import com.TanNgee.annotation.RpcScan;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author 陈毅
 * @create 2022/3/23 15:52
 */
@RpcScan(basePackage = {"com.TanNgee"})
public class NettyClientMain {
    public static void main(String[] args) throws InterruptedException {

        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(NettyClientMain.class);

        HelloController helloController = (HelloController) applicationContext.getBean("helloController");

        helloController.test();
    }
}
